package cn.wolfcode.mapper;

import cn.wolfcode.domain.Question;
import cn.wolfcode.domain.QuestionItem;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    List<Question> selectForList(QueryObject qo);


    List<Integer> selectSingleType(Integer singleNumber);


    List<Integer> selectMultiType(Integer multiNumber);

    List<Integer> selectJudgeType(Integer judgeNumber);

    void insertExamQuestion(@Param("examId") Long examId, @Param("questionId") Integer questionId, @Param("i") int i, @Param("singleScore") Integer singleScore);

    List<Question> selectQuestionAndJudgeAnswer(Long examId);


}